<h1>Plans List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Nombre</th>
      <th>Descripc</th>
      <th>Activo</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($plans as $plan): ?>
    <tr>
      <td><a href="<?php echo url_for('plan/show?id='.$plan->getId()) ?>"><?php echo $plan->getId() ?></a></td>
      <td><?php echo $plan->getNombre() ?></td>
      <td><?php echo $plan->getDescripc() ?></td>
      <td><?php echo $plan->getActivo() ?></td>
      <td><?php echo $plan->getCreatedAt() ?></td>
      <td><?php echo $plan->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('plan/new') ?>">New</a>
